<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LASAR: Code/LASAR/Embedded/Satellite/Satellite.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="Logo HDPI [329x72].png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LASAR
   &#160;<span id="projectnumber">v. 1.0</span>
   </div>
   <div id="projectbrief">Light Automation System Accessed Remotely</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Code/LASAR/Embedded/Satellite/Satellite.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h__dep__incl.png" border="0" usemap="#_code_2_l_a_s_a_r_2_embedded_2_satellite_2_satellite_8hdep" alt=""/></div>
<map name="_code_2_l_a_s_a_r_2_embedded_2_satellite_2_satellite_8hdep" id="_code_2_l_a_s_a_r_2_embedded_2_satellite_2_satellite_8hdep">
<area shape="rect" id="node3" href="_satellite_8c.html" title="Code/LASAR/Embedded/Satellite/Satellite.c" alt="" coords="5,80,283,107"/></map>
</div>
</div>
<p><a href="_satellite_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_pref.html">Pref</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preference type Holds all values needed for storing preferences.  <a href="struct_pref.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr class="memitem:ad72dbcf6d0153db1b8d8a58001feed83"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#ad72dbcf6d0153db1b8d8a58001feed83">DEBUG</a>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:a392fb874e547e582e9c66a08a1f23326"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a392fb874e547e582e9c66a08a1f23326">MAX</a>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a29e413f6725b2ba32d165ffaa35b01e5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a29e413f6725b2ba32d165ffaa35b01e5">OFF</a>&#160;&#160;&#160;-1</td></tr>
<tr class="memitem:afb004735ca38de9210e8b8e9e84fcacb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#afb004735ca38de9210e8b8e9e84fcacb">SERVO_PERIOD</a>&#160;&#160;&#160;312</td></tr>
<tr class="memitem:a496d0a0c60b8d9cb6f759577c310f217"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a496d0a0c60b8d9cb6f759577c310f217">SERVO_FWD</a>&#160;&#160;&#160;0x0A</td></tr>
<tr class="memitem:a8c35450502e6060e9b1617139e745883"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a8c35450502e6060e9b1617139e745883">SERVO_REV</a>&#160;&#160;&#160;0x2F</td></tr>
<tr class="memitem:a1f1b7bda7db3f5e87e41ea51d048224c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a1f1b7bda7db3f5e87e41ea51d048224c">CLOSE_TIME</a>&#160;&#160;&#160;7000</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0ab136e9ebd2b5d9caae63438d058188"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a0ab136e9ebd2b5d9caae63438d058188">delay_ms</a> (uint16_t tick)</td></tr>
<tr class="memitem:af0309a165c5eb3e860fd75ce362b8529"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#af0309a165c5eb3e860fd75ce362b8529">initAC</a> (int dutycycle)</td></tr>
<tr class="memdesc:af0309a165c5eb3e860fd75ce362b8529"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes AC light control Declares timer settings and starts the timer Initializes the interrupt values specific to the phase control.  <a href="#af0309a165c5eb3e860fd75ce362b8529"></a><br/></td></tr>
<tr class="memitem:a2f78b3f3318ab9a0a24a164f24256268"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a2f78b3f3318ab9a0a24a164f24256268">initL2F</a> ()</td></tr>
<tr class="memdesc:a2f78b3f3318ab9a0a24a164f24256268"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes Light to Frequency Converter Sets the proper interrupt values for PCINT20. This uses the same timer as the PIR sensor.  <a href="#a2f78b3f3318ab9a0a24a164f24256268"></a><br/></td></tr>
<tr class="memitem:a228ca26c149b48d0fa6a9e3c2c7975d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a228ca26c149b48d0fa6a9e3c2c7975d0">initPIR</a> ()</td></tr>
<tr class="memdesc:a228ca26c149b48d0fa6a9e3c2c7975d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize Personal Infrared Sensor Sets the proper interrupt values for PCINT0.  <a href="#a228ca26c149b48d0fa6a9e3c2c7975d0"></a><br/></td></tr>
<tr class="memitem:a1f576ee1d06e908fc16330a4506780a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a1f576ee1d06e908fc16330a4506780a9">checkAlarm</a> ()</td></tr>
<tr class="memdesc:a1f576ee1d06e908fc16330a4506780a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check current time vs alarm times Checks the hour of an alarm. If true, it then checks the minutes.  <a href="#a1f576ee1d06e908fc16330a4506780a9"></a><br/></td></tr>
<tr class="memitem:a3f325a8aec708de6a186e6268f38d045"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a3f325a8aec708de6a186e6268f38d045">setDim</a> (int arg)</td></tr>
<tr class="memdesc:a3f325a8aec708de6a186e6268f38d045"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set current Dim Value Provides a central function to call in order to change the value. NOTE: This <b>does</b> change the brightness level.  <a href="#a3f325a8aec708de6a186e6268f38d045"></a><br/></td></tr>
<tr class="memitem:a7fbfa2cedde30ed04396cc0a3f232f59"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a7fbfa2cedde30ed04396cc0a3f232f59">setBlinds</a> (int arg)</td></tr>
<tr class="memdesc:a7fbfa2cedde30ed04396cc0a3f232f59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set current Blinds value Provides a central function to call in order to change the value. NOTE: Does <b>not</b> change the blinds level.  <a href="#a7fbfa2cedde30ed04396cc0a3f232f59"></a><br/></td></tr>
<tr class="memitem:ac3f87e7d8ba1b0dbacfd1bc1674cb92c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#ac3f87e7d8ba1b0dbacfd1bc1674cb92c">checkPIR</a> ()</td></tr>
<tr class="memdesc:ac3f87e7d8ba1b0dbacfd1bc1674cb92c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Monitor any movement registered by PIR sensor In the even of motion, the PIR data line will be high. The line is debounced in order to not receive noise.  <a href="#ac3f87e7d8ba1b0dbacfd1bc1674cb92c"></a><br/></td></tr>
<tr class="memitem:a7f03a61277bace0b0331e42497e0b69c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a7f03a61277bace0b0331e42497e0b69c">initServo</a> ()</td></tr>
<tr class="memdesc:a7f03a61277bace0b0331e42497e0b69c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize Servos that control Blinds A nice hack that uses a smaller, 8-bit timer to do the work usually relegated to a 16-bit timer.  <a href="#a7f03a61277bace0b0331e42497e0b69c"></a><br/></td></tr>
<tr class="memitem:a065adbd131fc5f61263a53739d642766"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a065adbd131fc5f61263a53739d642766">initTimer</a> (int dutycycle)</td></tr>
<tr class="memitem:a21eb55c2ad090fd3041505a5a09898e5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a21eb55c2ad090fd3041505a5a09898e5">varyBlinds</a> (int8_t percent)</td></tr>
<tr class="memitem:afd9b09f58917f0e2d14c61b956eba214"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#afd9b09f58917f0e2d14c61b956eba214">SPI_init</a> (void)</td></tr>
<tr class="memitem:ae7e64ca53a04fe609757c9260dc3791d"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#ae7e64ca53a04fe609757c9260dc3791d">SPI_Transmit</a> (char cData)</td></tr>
<tr class="memitem:a478a022a994b38488f713e1a30107b70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a478a022a994b38488f713e1a30107b70">getTime</a> (uint8_t *hours, uint8_t *minutes, uint8_t *seconds)</td></tr>
<tr class="memitem:a11e0fd7642e9f27565483c004bfbadd7"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_satellite_8h.html#a11e0fd7642e9f27565483c004bfbadd7">getDigits</a> (char *cmd, uint8_t *i)</td></tr>
<tr class="memdesc:a11e0fd7642e9f27565483c004bfbadd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modified atoi Parses the command string for integer values.  <a href="#a11e0fd7642e9f27565483c004bfbadd7"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a1f1b7bda7db3f5e87e41ea51d048224c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#a1f1b7bda7db3f5e87e41ea51d048224c">CLOSE_TIME</a>&#160;&#160;&#160;7000</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Amount of time needed to fully open/close the blinds </p>

</div>
</div>
<a class="anchor" id="ad72dbcf6d0153db1b8d8a58001feed83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#ad72dbcf6d0153db1b8d8a58001feed83">DEBUG</a>&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allows for a debug mode that provides more verbose feedback </p>

</div>
</div>
<a class="anchor" id="a392fb874e547e582e9c66a08a1f23326"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#a392fb874e547e582e9c66a08a1f23326">MAX</a>&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>AC Lighting fully on </p>

</div>
</div>
<a class="anchor" id="a29e413f6725b2ba32d165ffaa35b01e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#a29e413f6725b2ba32d165ffaa35b01e5">OFF</a>&#160;&#160;&#160;-1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>AC Lighting fully off </p>

</div>
</div>
<a class="anchor" id="a496d0a0c60b8d9cb6f759577c310f217"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#a496d0a0c60b8d9cb6f759577c310f217">SERVO_FWD</a>&#160;&#160;&#160;0x0A</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afb004735ca38de9210e8b8e9e84fcacb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#afb004735ca38de9210e8b8e9e84fcacb">SERVO_PERIOD</a>&#160;&#160;&#160;312</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Period </p>

</div>
</div>
<a class="anchor" id="a8c35450502e6060e9b1617139e745883"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_satellite_8h.html#a8c35450502e6060e9b1617139e745883">SERVO_REV</a>&#160;&#160;&#160;0x2F</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a1f576ee1d06e908fc16330a4506780a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a1f576ee1d06e908fc16330a4506780a9">checkAlarm</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check current time vs alarm times Checks the hour of an alarm. If true, it then checks the minutes. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_cgraph.png" border="0" usemap="#_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_cgraph" alt=""/></div>
<map name="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_cgraph" id="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_cgraph">
<area shape="rect" id="node3" href="_u_s_a_r_t_8c.html#afbee8ed7c48bd35c6f88a5eb6de189eb" title="print" alt="" coords="270,21,317,48"/><area shape="rect" id="node9" href="_satellite_8c.html#a3f325a8aec708de6a186e6268f38d045" title="Set current Dim Value Provides a central function to call in order to change the value. NOTE: This does change the brightness level." alt="" coords="151,21,214,48"/><area shape="rect" id="node12" href="_satellite_8c.html#a7fbfa2cedde30ed04396cc0a3f232f59" title="Set current Blinds value Provides a central function to call in order to change the value..." alt="" coords="145,72,221,99"/><area shape="rect" id="node5" href="_u_s_a_r_t_8c.html#a5d4e4ef222bf80183d31cf81b30d9c69" title="USART_Print" alt="" coords="365,21,464,48"/><area shape="rect" id="node7" href="_u_s_a_r_t_8c.html#ab8c416106cf1aff4ccdb3da4860fc179" title="USART_Transmit" alt="" coords="512,21,635,48"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_icgraph.png" border="0" usemap="#_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_icgraph" alt=""/></div>
<map name="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_icgraph" id="_satellite_8h_a1f576ee1d06e908fc16330a4506780a9_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="144,5,195,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac3f87e7d8ba1b0dbacfd1bc1674cb92c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#ac3f87e7d8ba1b0dbacfd1bc1674cb92c">checkPIR</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Monitor any movement registered by PIR sensor In the even of motion, the PIR data line will be high. The line is debounced in order to not receive noise. </p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_cgraph.png" border="0" usemap="#_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_cgraph" alt=""/></div>
<map name="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_cgraph" id="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_cgraph">
<area shape="rect" id="node3" href="_u_s_a_r_t_8c.html#afbee8ed7c48bd35c6f88a5eb6de189eb" title="print" alt="" coords="246,5,293,32"/><area shape="rect" id="node9" href="_satellite_8c.html#a3f325a8aec708de6a186e6268f38d045" title="Set current Dim Value Provides a central function to call in order to change the value. NOTE: This does change the brightness level." alt="" coords="134,31,197,57"/><area shape="rect" id="node5" href="_u_s_a_r_t_8c.html#a5d4e4ef222bf80183d31cf81b30d9c69" title="USART_Print" alt="" coords="341,5,440,32"/><area shape="rect" id="node7" href="_u_s_a_r_t_8c.html#ab8c416106cf1aff4ccdb3da4860fc179" title="USART_Transmit" alt="" coords="488,5,611,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_icgraph.png" border="0" usemap="#_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_icgraph" alt=""/></div>
<map name="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_icgraph" id="_satellite_8h_ac3f87e7d8ba1b0dbacfd1bc1674cb92c_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="133,5,184,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0ab136e9ebd2b5d9caae63438d058188"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="_satellite_8h.html#a0ab136e9ebd2b5d9caae63438d058188">delay_ms</a> </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>tick</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a11e0fd7642e9f27565483c004bfbadd7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="_satellite_8h.html#a11e0fd7642e9f27565483c004bfbadd7">getDigits</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Modified atoi Parses the command string for integer values. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>Command string </td></tr>
    <tr><td class="paramname">i</td><td>Length of the entire command string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Value parsed </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a11e0fd7642e9f27565483c004bfbadd7_icgraph.png" border="0" usemap="#_satellite_8h_a11e0fd7642e9f27565483c004bfbadd7_icgraph" alt=""/></div>
<map name="_satellite_8h_a11e0fd7642e9f27565483c004bfbadd7_icgraph" id="_satellite_8h_a11e0fd7642e9f27565483c004bfbadd7_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="128,5,179,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a478a022a994b38488f713e1a30107b70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a478a022a994b38488f713e1a30107b70">getTime</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>hours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>minutes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af0309a165c5eb3e860fd75ce362b8529"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#af0309a165c5eb3e860fd75ce362b8529">initAC</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dutycycle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes AC light control Declares timer settings and starts the timer Initializes the interrupt values specific to the phase control. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dutycycle</td><td>Duty cycle of AC wave </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_af0309a165c5eb3e860fd75ce362b8529_icgraph.png" border="0" usemap="#_satellite_8h_af0309a165c5eb3e860fd75ce362b8529_icgraph" alt=""/></div>
<map name="_satellite_8h_af0309a165c5eb3e860fd75ce362b8529_icgraph" id="_satellite_8h_af0309a165c5eb3e860fd75ce362b8529_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="112,5,163,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2f78b3f3318ab9a0a24a164f24256268"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a2f78b3f3318ab9a0a24a164f24256268">initL2F</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes Light to Frequency Converter Sets the proper interrupt values for PCINT20. This uses the same timer as the PIR sensor. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a2f78b3f3318ab9a0a24a164f24256268_icgraph.png" border="0" usemap="#_satellite_8h_a2f78b3f3318ab9a0a24a164f24256268_icgraph" alt=""/></div>
<map name="_satellite_8h_a2f78b3f3318ab9a0a24a164f24256268_icgraph" id="_satellite_8h_a2f78b3f3318ab9a0a24a164f24256268_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="115,5,165,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a228ca26c149b48d0fa6a9e3c2c7975d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a228ca26c149b48d0fa6a9e3c2c7975d0">initPIR</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize Personal Infrared Sensor Sets the proper interrupt values for PCINT0. </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a228ca26c149b48d0fa6a9e3c2c7975d0_icgraph.png" border="0" usemap="#_satellite_8h_a228ca26c149b48d0fa6a9e3c2c7975d0_icgraph" alt=""/></div>
<map name="_satellite_8h_a228ca26c149b48d0fa6a9e3c2c7975d0_icgraph" id="_satellite_8h_a228ca26c149b48d0fa6a9e3c2c7975d0_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="115,5,165,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7f03a61277bace0b0331e42497e0b69c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a7f03a61277bace0b0331e42497e0b69c">initServo</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize Servos that control Blinds A nice hack that uses a smaller, 8-bit timer to do the work usually relegated to a 16-bit timer. </p>
<p>&lt; Prescalar /1024</p>
<p>&lt; Enable OVF </p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a7f03a61277bace0b0331e42497e0b69c_icgraph.png" border="0" usemap="#_satellite_8h_a7f03a61277bace0b0331e42497e0b69c_icgraph" alt=""/></div>
<map name="_satellite_8h_a7f03a61277bace0b0331e42497e0b69c_icgraph" id="_satellite_8h_a7f03a61277bace0b0331e42497e0b69c_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="125,5,176,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a065adbd131fc5f61263a53739d642766"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a065adbd131fc5f61263a53739d642766">initTimer</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dutycycle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7fbfa2cedde30ed04396cc0a3f232f59"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a7fbfa2cedde30ed04396cc0a3f232f59">setBlinds</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set current Blinds value Provides a central function to call in order to change the value. NOTE: Does <b>not</b> change the blinds level. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>Percent difference that blinds must be set to </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Whether the move has been performed </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_cgraph.png" border="0" usemap="#_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_cgraph" alt=""/></div>
<map name="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_cgraph" id="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_cgraph">
<area shape="rect" id="node3" href="_u_s_a_r_t_8c.html#afbee8ed7c48bd35c6f88a5eb6de189eb" title="print" alt="" coords="131,5,178,32"/><area shape="rect" id="node5" href="_u_s_a_r_t_8c.html#a5d4e4ef222bf80183d31cf81b30d9c69" title="USART_Print" alt="" coords="227,5,325,32"/><area shape="rect" id="node7" href="_u_s_a_r_t_8c.html#ab8c416106cf1aff4ccdb3da4860fc179" title="USART_Transmit" alt="" coords="373,5,496,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_icgraph.png" border="0" usemap="#_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_icgraph" alt=""/></div>
<map name="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_icgraph" id="_satellite_8h_a7fbfa2cedde30ed04396cc0a3f232f59_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="269,5,320,32"/><area shape="rect" id="node5" href="_satellite_8h.html#a1f576ee1d06e908fc16330a4506780a9" title="Check current time vs alarm times Checks the hour of an alarm. If true, it then checks the minutes..." alt="" coords="131,31,221,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3f325a8aec708de6a186e6268f38d045"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#a3f325a8aec708de6a186e6268f38d045">setDim</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set current Dim Value Provides a central function to call in order to change the value. NOTE: This <b>does</b> change the brightness level. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>The new brightness level </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Whether the move has been performed </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_cgraph.png" border="0" usemap="#_satellite_8h_a3f325a8aec708de6a186e6268f38d045_cgraph" alt=""/></div>
<map name="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_cgraph" id="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_cgraph">
<area shape="rect" id="node3" href="_u_s_a_r_t_8c.html#afbee8ed7c48bd35c6f88a5eb6de189eb" title="print" alt="" coords="118,5,165,32"/><area shape="rect" id="node5" href="_u_s_a_r_t_8c.html#a5d4e4ef222bf80183d31cf81b30d9c69" title="USART_Print" alt="" coords="213,5,312,32"/><area shape="rect" id="node7" href="_u_s_a_r_t_8c.html#ab8c416106cf1aff4ccdb3da4860fc179" title="USART_Transmit" alt="" coords="360,5,483,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_icgraph.png" border="0" usemap="#_satellite_8h_a3f325a8aec708de6a186e6268f38d045_icgraph" alt=""/></div>
<map name="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_icgraph" id="_satellite_8h_a3f325a8aec708de6a186e6268f38d045_icgraph">
<area shape="rect" id="node3" href="_satellite_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="main" alt="" coords="256,22,307,49"/><area shape="rect" id="node5" href="_satellite_8h.html#a1f576ee1d06e908fc16330a4506780a9" title="Check current time vs alarm times Checks the hour of an alarm. If true, it then checks the minutes..." alt="" coords="117,22,208,49"/><area shape="rect" id="node8" href="_satellite_8h.html#ac3f87e7d8ba1b0dbacfd1bc1674cb92c" title="Monitor any movement registered by PIR sensor In the even of motion, the PIR data line will be high..." alt="" coords="123,73,202,100"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="afd9b09f58917f0e2d14c61b956eba214"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_satellite_8h.html#afd9b09f58917f0e2d14c61b956eba214">SPI_init</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae7e64ca53a04fe609757c9260dc3791d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="_satellite_8h.html#ae7e64ca53a04fe609757c9260dc3791d">SPI_Transmit</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>cData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a21eb55c2ad090fd3041505a5a09898e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="_satellite_8h.html#a21eb55c2ad090fd3041505a5a09898e5">varyBlinds</a> </td>
          <td>(</td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>percent</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 23 2012 14:43:58 for LASAR by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
